home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 428 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HP UX 10.0 C programming
  5. Date: 05 Jan 1996 06:34:03 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Jan4233403@qcd.lanl.gov>
  8. References: <4cfje3$qk@nn.fast.net> <4chbdr$k13@umbc9.umbc.edu>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: schlein@umbc.edu's message of 4 Jan 1996 14:56:43 -0500
  13.  
  14. --text follows this line--
  15. In article <4chbdr$k13@umbc9.umbc.edu> schlein@umbc.edu (Jonas
  16. J. Schlein) writes: 
  17. <snip>
  18.    Add the declaration 'struct stat buf;'.
  19.  
  20.    |> int stat(const char *path, struct stat *buf);    
  21.  
  22.    I doubt you need this prototype since you #include'd <sys/stat.h>, but it
  23.    doesn't hurt to have it as long as there is no conflict with other
  24. prototypes. 
  25.  
  26. As stat is not a standard library function, nothing much can be said
  27. about it from a strict C perspective. However, one must recognize a
  28. possible danger in explicitly redeclaring a standard function: the
  29. compiler might have implemented it as a macro in addition!  So, before
  30. prototyping already declared functions, either #undef them first, or
  31. surround the names in otherwise redundant sets of parentheses.
  32.  
  33. Cheers
  34. Tanmoy
  35. --
  36. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  37. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  38. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  39. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  40. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  41. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  42.